import request from '@/utils/request'
import { LoginFormInt } from '@/type/data'
// import { GET, POST, PUT, DELETE } from './requestApi'
// let URL = '/drone/drones/'
// export function getDrone(params: any) {
//   return GET({ url: URL, params: params })
// }
// async function test() {
//   let param = {
//     page_index: 1,
//     page_size: 20,
//   };
//   let res: any = await getDrone(param)
// }

export const login = (params: LoginFormInt) => {
  return request({
    url: '/client/user/login',
    method: 'POST',
    data: params
  })
}
export const user_permissions = (id: number) => {
  return request({
    url: `/api/user-permissions/${id}`,
    method: 'GET'
  })
}